package router

import (
	"fx_swift_boss/internal/controller"
	"fx_swift_boss/pkg/middleware"
)

func CardRouter() {
	cardApiVer := miniApiVer.Group("card", middleware.CheckAuth())
	{
		cardApiVer.POST("cardList", controller.CardList)
		cardApiVer.POST("cardTradeList", controller.CardTradeList)
		cardApiVer.POST("exportCardTrade", controller.ExportCardTrade)

		cardApiVer.GET("getCardDetails", controller.GetCardDetails)
		cardApiVer.GET("operatorCardState", controller.OperatorCardState)
		cardApiVer.GET("getCardImage", controller.GetCardImage)
	}
}
